home *** CD-ROM | disk | FTP | other *** search
/ Resource for Source: C/C++ / Resource for Source - C-C++.iso / codelib7 / v_09_10 / 9n10123a < prev    next >
Encoding:
Text File  |  1995-11-01  |  343 b   |  17 lines

  1.  
  2. /***************************************************************
  3. *  Program  : getkey
  4. *  Descript. : This routine gets the next key (extended)
  5. *****************************************************************/
  6.  
  7. int getkey()
  8.   {
  9.   int i;
  10.  
  11.   if ( ( i = getch() ) != 0 )
  12.     return( i );
  13.   else
  14.     return( getch() + 256 );
  15.   }
  16.  
  17.